<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
	<head>
		<title>黄石物流后台管理系统</title>
		<%@ include file="/jsp/common/common_script.jsp"%>
		<script src="${ctx }/js/adv/advertising.js"></script>
	</head>
	<body>
		<table class="queryTable" >
			<tr>
				<td class="queryTitle" width="80px">标题</td>
				<td class="queryContent">
					<input class="inputText" type="text" id="queryTitleId"/>
				</td>
				<td class="queryBtnTd">
					<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onclick="doQuery()">查询</a>
				</td>
			</tr>
		</table>
		
		<table id="advGrid" ></table>
		
		<div id="addAdvDlg" class="easyui-window" closed="true" title="" iconCls="icon-add" style="width:590px; height:390px;text-align:center; background: #fafafa;">
			<div class="easyui-layout" fit="true">
				<div region="center" border="false" style="background:#fff;border:1px solid #ccc;padding-left: 20px;">
					<form id="addAdvForm"  method="post">
						<table border="0" class="queryTable" width="542px" height="300px" style="margin-bottom: 0px">
							<tr style="height: 40px;">
								<td class="queryTitle" style="width: 100px;">标题：</td>
								<td class="queryContent">
									<input type="hidden" name="adId"/>
									<input type="hidden" id="submitType" />
									<input type="text" id="title" name="title" class="inputText easyui-validatebox" style="width: 300px;" required="true" validType="maxLength[100]" maxlength="100" />
								</td>
							</tr>
							<tr>
								<td class="queryTitle">广告图片：</td>
								<td class="queryContent">
									<input type="text" id="attachRealName" name="attachRealName" class="inputText" style="width: 300px;" readonly="readonly"/>
									<span id="spanButtonPlaceHolder"></span>
									<br/>
						   			<img id="uploadImg"  style="border:solid 1px #ccc;padding:3px;width:50px;height:36px;cursor:hand"/>
						   			<div style="width:150px; height: 2px;" id="fsUploadProgress"></div>
						   			<div id="divStatus" style="width:100px;font-size:10pt;font:normal;color: blue; display: none;">0个文件已经上传</div>
						   			<div id="content" style="display:none;">
										<input id="btnCancel" type="button" value="Cancel All Uploads" onclick="swfu.cancelQueue();" disabled="disabled"
											style="margin-left: 2px; font-size: 8pt; height: 25px; display: none" />
										<span id="batchNoUploadId" style="display: none;"></span>
										<input type="hidden" id="picId" name="picId"/>
									</div>
								</td>
							</tr>
							<tr style="height: 40px;">
								<td class="queryTitle">链接地址：</td>
								<td class="queryContent">
									<input type="text" id="linkUrl" name="linkUrl" class="inputText easyui-validatebox" style="width: 300px;" data-options="validType:'url'" maxlength="200" />
								</td>
							</tr>
							<tr style="height: 114px;">
								<td class="queryTitle">备注：</td>
								<td class="queryContent">
									<textarea id="remark" name="remark" rows="10" cols="5" style="width:410px; height:100px; resize:none;"></textarea>
								</td>
							</tr>
						</table>
					</form>
				</div>
				<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
					<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doPostData()">确定</a>
					<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="closeWindow()">取消</a>
				</div>
			</div>
		</div>
		
		<%-- 文件上传共通页面 --%>
		<jsp:include page="/jsp/common/common_upload.jsp"></jsp:include>
	</body>
</html>
